#! /usr/bin/env python 
#coding=utf-8
#
import os
from Queue import Queue
import threading
import time
import urllib
from urlparse import *
from urlparse import urljoin
import redis
import urllib2
import time

key_to = 'redis_pan_user_to'
key_ed = 'redis_pan_user_ed'
key_mi = 'redis_pan_user_mi'
key_no = 'redis_pan_errno'


r =  redis.Redis(host='localhost', port=6379)

while True:
	time.sleep(2)
	print 'queue:'+str(r.scard(key_to))+',error:'+str(r.scard(key_mi))+',haved:'+str(r.scard(key_ed))+',urlerr:'+str(r.scard(key_no))
